package com.ttj.domain.oracle.gen;

import java.io.Serializable;
import java.util.Date;

public class SuperWebExchange implements Serializable {
    private Integer exId;

    private String phonenum;

    /**
     * 奖品id | 捐赠活动ID|一卡通卡号
     */
    private Long prizeId;

    /**
     * 商品兑换所用绿猫币 （个）
     */
    private Integer exNum;

    /**
     * 时间
     */
    private Date indate;

    /**
     * 1 兑奖  2 捐  3回收 4充值 5奖励给绿猫
     */
    private Integer type;

    /**
     * 用户名
     */
    private String username;

    /**
     * 兑换的商品个数
     */
    private Integer prizeNum;

    /**
     * 1 虚拟币  2 积分(type=3时，1-现金结算；2-虚拟币结算)
     */
    private Integer exType;

    /**
     * 0 提交  1 出库  2 等待收货  3 完成
     */
    private Integer oStatus;

    private Integer orderId;

    /**
     * 商品兑换所用人民币（元）
     */
    private Double money;

    /**
     * 当前结余  绿色账户(现金)
     */
    private Double balanceVisualCoin;

    /**
     * 当前结余  绿猫币
     */
    private Double balanceCredit;

    private static final long serialVersionUID = 1L;

    public Integer getExId() {
        return exId;
    }

    public void setExId(Integer exId) {
        this.exId = exId;
    }

    public String getPhonenum() {
        return phonenum;
    }

    public void setPhonenum(String phonenum) {
        this.phonenum = phonenum;
    }

    /**
     * 奖品id | 捐赠活动ID|一卡通卡号
     */
    public Long getPrizeId() {
        return prizeId;
    }

    /**
     * 奖品id | 捐赠活动ID|一卡通卡号
     */
    public void setPrizeId(Long prizeId) {
        this.prizeId = prizeId;
    }

    /**
     * 商品兑换所用绿猫币 （个）
     */
    public Integer getExNum() {
        return exNum;
    }

    /**
     * 商品兑换所用绿猫币 （个）
     */
    public void setExNum(Integer exNum) {
        this.exNum = exNum;
    }

    /**
     * 时间
     */
    public Date getIndate() {
        return indate;
    }

    /**
     * 时间
     */
    public void setIndate(Date indate) {
        this.indate = indate;
    }

    /**
     * 1 兑奖  2 捐  3回收 4充值 5奖励给绿猫
     */
    public Integer getType() {
        return type;
    }

    /**
     * 1 兑奖  2 捐  3回收 4充值 5奖励给绿猫
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * 用户名
     */
    public String getUsername() {
        return username;
    }

    /**
     * 用户名
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 兑换的商品个数
     */
    public Integer getPrizeNum() {
        return prizeNum;
    }

    /**
     * 兑换的商品个数
     */
    public void setPrizeNum(Integer prizeNum) {
        this.prizeNum = prizeNum;
    }

    /**
     * 1 虚拟币  2 积分(type=3时，1-现金结算；2-虚拟币结算)
     */
    public Integer getExType() {
        return exType;
    }

    /**
     * 1 虚拟币  2 积分(type=3时，1-现金结算；2-虚拟币结算)
     */
    public void setExType(Integer exType) {
        this.exType = exType;
    }

    /**
     * 0 提交  1 出库  2 等待收货  3 完成
     */
    public Integer getoStatus() {
        return oStatus;
    }

    /**
     * 0 提交  1 出库  2 等待收货  3 完成
     */
    public void setoStatus(Integer oStatus) {
        this.oStatus = oStatus;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    /**
     * 商品兑换所用人民币（元）
     */
    public Double getMoney() {
        return money;
    }

    /**
     * 商品兑换所用人民币（元）
     */
    public void setMoney(Double money) {
        this.money = money;
    }

    /**
     * 当前结余  绿色账户(现金)
     */
    public Double getBalanceVisualCoin() {
        return balanceVisualCoin;
    }

    /**
     * 当前结余  绿色账户(现金)
     */
    public void setBalanceVisualCoin(Double balanceVisualCoin) {
        this.balanceVisualCoin = balanceVisualCoin;
    }

    /**
     * 当前结余  绿猫币
     */
    public Double getBalanceCredit() {
        return balanceCredit;
    }

    /**
     * 当前结余  绿猫币
     */
    public void setBalanceCredit(Double balanceCredit) {
        this.balanceCredit = balanceCredit;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", exId=").append(exId);
        sb.append(", phonenum=").append(phonenum);
        sb.append(", prizeId=").append(prizeId);
        sb.append(", exNum=").append(exNum);
        sb.append(", indate=").append(indate);
        sb.append(", type=").append(type);
        sb.append(", username=").append(username);
        sb.append(", prizeNum=").append(prizeNum);
        sb.append(", exType=").append(exType);
        sb.append(", oStatus=").append(oStatus);
        sb.append(", orderId=").append(orderId);
        sb.append(", money=").append(money);
        sb.append(", balanceVisualCoin=").append(balanceVisualCoin);
        sb.append(", balanceCredit=").append(balanceCredit);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperWebExchange other = (SuperWebExchange) that;
        return (this.getExId() == null ? other.getExId() == null : this.getExId().equals(other.getExId()))
            && (this.getPhonenum() == null ? other.getPhonenum() == null : this.getPhonenum().equals(other.getPhonenum()))
            && (this.getPrizeId() == null ? other.getPrizeId() == null : this.getPrizeId().equals(other.getPrizeId()))
            && (this.getExNum() == null ? other.getExNum() == null : this.getExNum().equals(other.getExNum()))
            && (this.getIndate() == null ? other.getIndate() == null : this.getIndate().equals(other.getIndate()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getUsername() == null ? other.getUsername() == null : this.getUsername().equals(other.getUsername()))
            && (this.getPrizeNum() == null ? other.getPrizeNum() == null : this.getPrizeNum().equals(other.getPrizeNum()))
            && (this.getExType() == null ? other.getExType() == null : this.getExType().equals(other.getExType()))
            && (this.getoStatus() == null ? other.getoStatus() == null : this.getoStatus().equals(other.getoStatus()))
            && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
            && (this.getMoney() == null ? other.getMoney() == null : this.getMoney().equals(other.getMoney()))
            && (this.getBalanceVisualCoin() == null ? other.getBalanceVisualCoin() == null : this.getBalanceVisualCoin().equals(other.getBalanceVisualCoin()))
            && (this.getBalanceCredit() == null ? other.getBalanceCredit() == null : this.getBalanceCredit().equals(other.getBalanceCredit()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getExId() == null) ? 0 : getExId().hashCode());
        result = prime * result + ((getPhonenum() == null) ? 0 : getPhonenum().hashCode());
        result = prime * result + ((getPrizeId() == null) ? 0 : getPrizeId().hashCode());
        result = prime * result + ((getExNum() == null) ? 0 : getExNum().hashCode());
        result = prime * result + ((getIndate() == null) ? 0 : getIndate().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getUsername() == null) ? 0 : getUsername().hashCode());
        result = prime * result + ((getPrizeNum() == null) ? 0 : getPrizeNum().hashCode());
        result = prime * result + ((getExType() == null) ? 0 : getExType().hashCode());
        result = prime * result + ((getoStatus() == null) ? 0 : getoStatus().hashCode());
        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
        result = prime * result + ((getMoney() == null) ? 0 : getMoney().hashCode());
        result = prime * result + ((getBalanceVisualCoin() == null) ? 0 : getBalanceVisualCoin().hashCode());
        result = prime * result + ((getBalanceCredit() == null) ? 0 : getBalanceCredit().hashCode());
        return result;
    }
}